package model;

import java.util.ArrayList;
import java.util.Collections;

public class KeyContainer {
	private ArrayList<String> keylist;
	private static KeyContainer instance;
	private final int first_index = 0;
	public synchronized static KeyContainer getInstance()
	{
		if(instance == null)
		{
			instance = new KeyContainer();
		}
			return instance;
	}
	
	public KeyContainer()
	{
		this.initContainer();
	}
	
	private void initContainer()
	{
		this.keylist = new ArrayList<String>(); 
		this.addAvailableKeys();
	}
	
	private void addAvailableKeys()
	{
		this.keylist.add("AI39si6EquMrdMz_oKMFk9rNBHqOQTUEG-kJ4I33xveO-W40U95XjJAL3-Fa9voJ3bPxkMwsT7IQKc39M3tw0o2fHswYRN0Chg");
	}
	
	public String getDeveloperKey()
	{
		Collections.shuffle(keylist);
		return keylist.get(first_index);
	}
}
